#include "Vec3.h"



Vec3::Vec3(float px, float py, float pz):
	x(px),
	y(py),
	z(pz)
{
}

Vec3& Vec3::Add(const Vec3& other)
{
	this->x += other.x;
	this->y += other.y;
	this->z += other.z;
	return *this;
}

string Vec3::ToString() {
	ostringstream oss;
	oss << this->x << "\t" << this->y << "\t" << this->z << endl;
	return oss.str();
}


